package com.heima.api;

import com.heima.model.schedule.dtos.Task;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-schedule")
public interface TaskClient {
    @PostMapping("/api/v1/task/addTask")
    public void addTask(@RequestBody Task task);

}

